package com.wangjiyuan.shiwupai.base;

import android.app.Application;
import android.graphics.drawable.AnimationDrawable;

import com.umeng.socialize.PlatformConfig;
import com.umeng.socialize.UMShareAPI;
import com.wangjiyuan.shiwupai.R;

/**
 * Created by wjy on 2016/11/25.
 */

public class BaseApplication extends Application {
    {

        PlatformConfig.setWeixin("wx967daebe835fbeac", "5bb696d9ccd75a38c8a0bfe0675559b3");
        PlatformConfig.setSinaWeibo("3921700954", "04b48b094faeb16683c32669824ebdad");
        PlatformConfig.setQQZone("100424468", "c7394704798a158208a74ab60104f0ba");


    }

    public static Application app;
    public static int width;

    public static AnimationDrawable animationDrawable;

    @Override
    public void onCreate() {
        super.onCreate();
        app = this;
        UMShareAPI.get(this);
        width = getResources().getDisplayMetrics().widthPixels;

        animationDrawable= (AnimationDrawable) getResources().getDrawable(R.drawable.loadgif);
    }
}
